﻿<cfsilent>
	<cfscript>
	
		event.setArg("pageTitle", "教学运行管理 - 排课 - 打印教师课表");
		
		dictAdvice = getProperty("serviceFactory").getBean("senateDictionaryAdvice");
		mathAdvice = getProperty("serviceFactory").getBean("senateMathAdvice");
		
		sessionAdvice = getProperty("serviceFactory").getBean("sessionAdvice");
		
		depId = sessionAdvice.getUserProp("teacherDepartment");
		termId = event.getArg("TID");
		
		academicYear = event.getArg("AcademicYear");
		academicTerm = event.getArg("AcademicTerm");
		
		teacherId = event.getArg("TCHID");
		
		currentTab = event.getArg("TabID", "labTeacher");
		
		passArgs = structNew();
		
		if ( len(termId) ) {
			
			structInsert(passArgs, "TID", termId);
			
			sql = "SELECT a.institute_name 
					FROM t_institute a 
					WHERE a.institute_id = :depId ";
			queryObj = new Query( datasource=application.dnsSlave ) ;
			queryObj.addParam( name="depId", value=depId, cfsqltype="cf_sql_varchar" );
			rs_department= queryObj.execute( sql=sql ).getResult();
			
			sql = "SELECT 
						b.tch_id, b.tch_name, 
						c.tp_series, 
						d.edu_background,  
						sum(a.cellrelay) sum0, 
						sum( case when a.wdidx = '1' then a.cellrelay else 0 end ) sum1,
						sum( case when a.wdidx = '2' then a.cellrelay else 0 end ) sum2,
						sum( case when a.wdidx = '3' then a.cellrelay else 0 end ) sum3,
						sum( case when a.wdidx = '4' then a.cellrelay else 0 end ) sum4,
						sum( case when a.wdidx = '5' then a.cellrelay else 0 end ) sum5,
						sum( case when a.wdidx = '6' then a.cellrelay else 0 end ) sum6,
						sum( case when a.wdidx = '7' then a.cellrelay else 0 end ) sum7
					FROM t_teacher_timetable a 
						 INNER JOIN t_teacher b ON a.tch_id = b.tch_id 
						 INNER JOIN t_technical_position c ON c.tp_id = b.tp_id 
						 INNER JOIN t_teacher_educational d ON d.edu_id = b.edu_id  
					WHERE 
						b.institute_id = :depId  
						AND 
						a.term_id = :termId 
					GROUP BY b.tch_id , b.tch_name, 
						c.tp_series, 
						d.edu_background 
					ORDER BY 
						b.tch_name ";
				queryObj = new Query( datasource=application.dnsSlave ) ;
				queryObj.addParam( name="depId", value=depId, cfsqltype="cf_sql_varchar" );
				queryObj.addParam( name="termId", value=termId, cfsqltype="cf_sql_varchar" );
				rs_teacher= queryObj.execute( sql=sql ).getResult();
				if ( len(teacherId) ) {
				
				currentTab = event.getArg("TabID", "labCourseTable");
				
				/* 单个教师课表 */
				tagCode = "JXRYKB-" & termId & "," & teacherId;
								
				/* 读取教师课程的排课记录 */
			
				sql = "SELECT 
							b.course_name, 
							a.tasktime, 
							case when a.taskclsroom is null then '-' else a.taskclsroom end taskclsroom, 
							a.task_week, 
							a.task_type, a.task_id   
						FROM t_teacher_timetable a 
							 INNER JOIN t_course b ON b.cid = a.cid 
						WHERE 
							a.tch_id = :teacherId 
							AND 
							a.term_id = :termId";
				queryObj = new Query( datasource=application.dnsSlave ) ;
				queryObj.addParam( name="teacherId", value=teacherId, cfsqltype="cf_sql_varchar" );
				queryObj.addParam( name="termId", value=termId, cfsqltype="cf_sql_varchar" );
				rs_tableData= queryObj.execute( sql=sql ).getResult();
				timeTable = arrayNew(2);
		
				/* 课表冲突标记 */
				for ( lec=1; lec lte 6; lec++ ) {
					for ( wkday=1; wkday lte 7; wkday++ ) {
						timeTable[wkday][lec] = 0;
					}
				}
				
				timeTableSet = structNew();
				
				/* 生成课表显示数据 */
				for ( a=1; a LTE rs_tableData.recordCount; a++) {
			
					currentTaskTime = rs_tableData["tasktime"][a];
			
					if ( rs_tableData["taskclsroom"][a] eq "-" ) { 
						currentTaskPlace = "";
					}
					else {
						currentTaskPlace = rs_tableData["taskclsroom"][a];
					}
			
					wkday = listGetAt(currentTaskTime, 1, "-@");
					lec = listGetAt(currentTaskTime, 2, "-@");
					cell = listGetAt(currentTaskTime, 3, "-@");
			
					/* 载入教学任务 */
					switch( rs_tableData["task_type"][a] ){
						case "C":
							sql = "SELECT 
										 tch.tch_name tch_name, tch_sec.tch_name tch_name_sec, tch_ace.tch_name tch_name_ace 
									FROM 
										 t_common_task  
										 INNER JOIN t_teacher tch ON tch.tch_id = t_common_task.tch_id 
										 INNER JOIN t_teacher tch_sec ON tch_sec.tch_id = t_common_task.tch_id_sec 
										 INNER JOIN t_teacher tch_ace ON tch_ace.tch_id = t_common_task.tch_id_ace 
									WHERE 
										 t_common_task.tsk_id = :taskId ";
							break;
			
						case "P":
							sql = "SELECT 
										 tch.tch_name tch_name, tch_sec.tch_name tch_name_sec, tch_ace.tch_name tch_name_ace 
									FROM 
										 t_task  
										 INNER JOIN t_teacher tch ON tch.tch_id = t_task.tch_id 
										 INNER JOIN t_teacher tch_sec ON tch_sec.tch_id = t_task.tch_id_sec 
										 INNER JOIN t_teacher tch_ace ON tch_ace.tch_id = t_task.tch_id_ace 
									WHERE 
										 t_task.tsk_id = :taskId ";
							break;
						
						case "R":
							sql = "SELECT 
										 tch.tch_name tch_name, tch_sec.tch_name tch_name_sec, tch_ace.tch_name tch_name_ace 
									FROM 
										 t_reopen_task  
										 INNER JOIN t_teacher tch ON tch.tch_id = t_reopen_task.tch_id 
										 INNER JOIN t_teacher tch_sec ON tch_sec.tch_id = t_reopen_task.tch_id_sec 
										 INNER JOIN t_teacher tch_ace ON tch_ace.tch_id = t_reopen_task.tch_id_ace 
									WHERE 
										 t_reopen_task.tsk_id = :taskId ";
							break;
						
						case "T":
							sql = "SELECT 
										 tch.tch_name tch_name, tch_sec.tch_name tch_name_sec, tch_ace.tch_name tch_name_ace 
									FROM 
										 t_sport_task  
										 INNER JOIN t_teacher tch ON tch.tch_id = t_sport_task.tch_id 
										 INNER JOIN t_teacher tch_sec ON tch_sec.tch_id = t_sport_task.tch_id_sec 
										 INNER JOIN t_teacher tch_ace ON tch_ace.tch_id = t_sport_task.tch_id_ace 
									WHERE 
										 t_sport_task.tsk_id = :taskId ";
							break;
					}
					
					queryObj = new query( datasource=application.dnsMaster );
					queryObj.addParam( name="taskId", value=rs_tableData["task_id"][a], cfsqltype="cf_sql_varchar" );
					
					rs_task = queryObj.execute( sql=sql ).getResult();
			
					
					/* 生成教师 */
					currentTeacher = rs_task.tch_name;
			
					if ( not listFind( currentTeacher, rs_task.tch_name_sec, "/ " ) ) {
						currentTeacher = currentTeacher & " / " & rs_task.tch_name_sec;
					}
			
					if ( not listFind( currentTeacher, rs_task.tch_name_ace, "/ " ) ) {
						currentTeacher = currentTeacher & " / " & rs_task.tch_name_ace;
					}
			
					/* 
						生成课表内容 
						cellCourse = [ courseName, teacherName, place, cellLength, taskWeek]
					*/
					if ( cell eq 2 ) {

						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, cell, rs_tableData["task_week"][a] ];
			
						lectureKey = "KB" & wkday & lec;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec] = 1;
								}
							}

							arrayAppend( timeTableSet[lectureKey], cellCourse );
					
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
				
					}
			
					if ( cell eq 3 and lec eq 2 ) {

						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, cell, rs_tableData["task_week"][a] ];
			
						lectureKey = "KB" & wkday & lec;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec] = 1;
								}
							}

							arrayAppend( timeTableSet[lectureKey], cellCourse );
					
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
				
					}
			
					if ( cell eq 3 and lec eq 5 ) {

						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, 2, rs_tableData["task_week"][a] ];
			
						lectureKey = "KB" & wkday & lec;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec] = 1;
								}
							}

							arrayAppend( timeTableSet[lectureKey], cellCourse );
					
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
				
						/* 晚上3节延续1学时 */
						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, 1, rs_tableData["task_week"][a] ];
			
						lectureKey = "KB" & wkday & lec+1;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec+1] = 1;
								}
							}

							arrayAppend( timeTableSet[lectureKey], cellCourse );
					
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
				
					}
			
					/* 4学时延续 */
					if ( cell eq 4 ) {
				
						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, 2, rs_tableData["task_week"][a] ];
				
						lectureKey = "KB" & wkday & lec;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec] = 1;
								}
							}
					
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
				
						lectureKey = "KB" & wkday & lec+1;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec+1] = 1;
								}
							}
					
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
					}
			
					/* 5学时延续 */
					if ( cell eq 5 ) {
				
						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, 2, rs_tableData["task_week"][a] ];
				
						lectureKey = "KB" & wkday & lec;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec] = 1;
								}
							}
					
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}

						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, 3, rs_tableData["task_week"][a] ];
				
						lectureKey = "KB" & wkday & lec+1;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec+1] = 1;
								}
							}
					
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
					}
			
					/* 8学时延续 */
					if ( cell eq 8 ) {
				
						cellCourse = [ rs_tableData["course_name"][a], currentTeacher, currentTaskPlace, 2, rs_tableData["task_week"][a] ];
				
						lectureKey = "KB" & wkday & lec;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec] = 1;
								}
							}
					
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}
			
						lectureKey = "KB" & wkday & lec+1;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec+1] = 1;
								}
							}
					
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}

						lectureKey = "KB" & wkday & lec+2;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec+2] = 1;
								}
							}
					
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}

						lectureKey = "KB" & wkday & lec+3;
						if ( structKeyExists( timeTableSet, lectureKey ) ) {
					
							/* 计算课表单元时间冲突 */
							for ( cellCourseExists in timeTableSet[lectureKey] ) {
								if ( mathAdvice.isWeekOver( cellCourseExists[5], cellCourse[5] ) ) {
									/* 同一单元格 如果上课周次有重叠 */
									timeTable[wkday][lec+3] = 1;
								}
							}
							
							arrayAppend( timeTableSet[lectureKey], cellCourse );
						}
						else {
							structInsert( timeTableSet, lectureKey, [cellCourse] );
						}

					}

				}
					
			}
														
		}
	
	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('classCourseTable', passArgs)#</cfoutput>"><i class="mrs img btnList"></i><span class="uiButtonText">行政班课表</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 people"></i>学期教师授课安排情况
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">
				
				<cfif termId eq "">
					<!-- termSelector -->
					<cfoutput>#event.getArg("termSelector")#</cfoutput>
					<!-- /termSelector -->
				</cfif>
				
				<cfif len(termId)>
					
					<div class="UItab">
						<div class="tabLables">
							<span <cfif currentTab eq "labTeacher">class="active"</cfif> id="labTeacher" tabTarget="Teacher">周学时分布情况</span>
							<cfif len(teacherId)>
								<span <cfif currentTab eq "labCourseTable">class="active"</cfif> id="labCourseTable" tabTarget="CourseTable">教师课表</span>
							</cfif>
						</div>
					</div>
					
					<script language="javascript" type="text/javascript">
						//<![CDATA[
						<!--
						$(document).ready(function() {
						
							/* init Tab */
							$("div.tabContent[@id!=' + $targetID + ']").hide();
							$("div#" + $("div.tabLables span.active").attr("tabTarget")).show();
						
							$("div.tabLables > span").click(function(){
								var $targetID = $(this).attr("tabTarget");
							
								$("div.tabLables span").removeClass("active");
								$(this).addClass("active");
							
								$("div.tabContent[@id!=' + $targetID + ']").hide();
								$("div.tabContent#" + $targetID).show();
							});
						
						});
						// -->
						//]]>
					</script>
					
					<div id="Teacher" class="tabContent">
						
						<cfif rs_department.recordCount GT 0>
							
							<div class="noticeBlock">
								<div class="operation">
									<a class="uiButton" target="_blank" href="<cfoutput>#buildURL('instituteCoursePrint', passArgs)#</cfoutput>"><i class="mrs img btnPrint"></i><span class="uiButtonText">打印部门教师课表</span></a>
								</div>
								<h3><cfoutput>#rs_department.institute_name#</cfoutput></h3>
								<hr/>
							</div>
							
							<cfif rs_teacher.recordCount>
								
								<table class="UIEditable">
									<thead>
										<tr>
											<td width="18"></td>
											<td>工号</td>
											<td>教师</td>
											<td>职称</td>
											<td>学历</td>
											<td>周学时</td>
											<td>一</td>
											<td>二</td>
											<td>三</td>
											<td>四</td>
											<td>五</td>
											<td>六</td>
											<td>日</td>
										</tr>
									</thead>
									<tbody>
									<cfset row = 0 />
                                        <cfloop query="rs_teacher" >
											<cfset row++ />
											<cfset structInsert(passArgs, "TCHID", rs_teacher.tch_id, true) />
											<tr class="editRows">
												<td class="index"><cfoutput>#row#</cfoutput></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.tch_id#</cfoutput></span></td>
												<td><a href="<cfoutput>#buildURL('teacherCourseTable', passArgs)#</cfoutput>"><cfoutput>#rs_teacher.tch_name#</cfoutput></a></td>
												<td><cfoutput>#rs_teacher.tp_series#</cfoutput></td>
												<td><cfoutput>#rs_teacher.edu_background#</cfoutput></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum0#</cfoutput></span></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum1#</cfoutput></span></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum2#</cfoutput></span></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum3#</cfoutput></span></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum4#</cfoutput></span></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum5#</cfoutput></span></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum6#</cfoutput></span></td>
												<td><span class="numeric"><cfoutput>#rs_teacher.sum7#</cfoutput></span></td>
											</tr>
										</cfloop>
									</tbody>
								</table>
								
							</cfif>
							
						</cfif>
						
					</div>
					
					<cfif len(teacherId)>
						
						<cfset structInsert(passArgs, "TCHID", teacherId, true) />
						
						<div id="CourseTable" class="tabContent">

							<div class="noticeBlock">
								<div class="operation">
									<a class="uiButton" target="_blank" href="<cfoutput>#buildURL('teacherCoursePrint', passArgs)#</cfoutput>"><i class="mrs img btnPrint"></i><span class="uiButtonText">打印教师课表</span></a>
								</div>
								<h3>教师课表</h3>
								<p>
									<span class="img icon16x16 message"></span>
									在<em><cfoutput>#academicYear#</cfoutput>-<cfoutput>#academicTerm#</cfoutput></em>学期, 教师需要承担课程安排如下.
								</p>
								<hr/>
							</div>
						
							<!-- courseTable -->
							<table class="UICourseTable">
								<thead>
									<tr>
										<td colspan="2" width="2%"></td>
										<td width="14%">星期一</td>
										<td width="14%">星期二</td>
										<td width="14%">星期三</td>
										<td width="14%">星期四</td>
										<td width="14%">星期五</td>
										<td width="14%">星期六</td>
										<td width="14%">星期天</td>
									</tr>
								</thead>
								<tbody>
									<cfloop from="1" to="6" index="lec">
										<tr>
											<cfswitch expression="#lec#">
												<cfcase value="1">
												<td rowspan="2"><cfoutput>#mathAdvice.convertLectureIdxToDayPart(lec)#</cfoutput></td>
												</cfcase>
												<cfcase value="3">
												<td rowspan="2"><cfoutput>#mathAdvice.convertLectureIdxToDayPart(lec)#</cfoutput></td>
												</cfcase>
												<cfcase value="5">
												<td rowspan="2"><cfoutput>#mathAdvice.convertLectureIdxToDayPart(lec)#</cfoutput></td>
												</cfcase>
											</cfswitch>
											<td><cfoutput>#mathAdvice.convertLectureIdxToChinese(lec)#</cfoutput></td>
											<cfloop from="1" to="7" index="wkday">
												<cfset lectureKey = "KB" & wkday & lec />
												<td <cfif timeTable[wkday][lec]>class="attention"</cfif>>
													<cfif structKeyExists( timeTableSet, lectureKey )>
														<cfset i = 0 />
														<cfloop array="#timeTableSet[lectureKey]#" index="cellCourse">
															<cfset i++ />
															<div class="lecture">
																<span class="course"><cfoutput>#cellCourse[1]#</cfoutput></span> - <span class="teacher"><cfoutput>#cellCourse[2]#</cfoutput></span>
																<br/>
																<span class="week"><cfoutput>#cellCourse[5]#</cfoutput>(<cfoutput>#cellCourse[4]#</cfoutput>)</span>
																<cfif cellCourse[3] neq "-">
																	<br/>
																	<span class="place"><cfoutput>#cellCourse[3]#</cfoutput></span>
																</cfif>
															</div>
															<cfif i lt arrayLen(timeTableSet[lectureKey]) >
																<div class="cellBreaker"><!--.--></div>
															</cfif>
														</cfloop>
													</cfif>
												</td>
											</cfloop>
										</tr>
									</cfloop>
								</tbody>
							</table>
							<!-- /courseTable -->
					
						</div>
					</cfif>
					
				</cfif>

			</div>
		</li>
	</ul>
</div>
